package com.rlax.ccdemo.service.api.user.fegin;

import com.rlax.ccdemo.base.consts.AppName;
import com.rlax.ccdemo.service.api.user.dto.UpmsUserDTO;
import com.rlax.corebin.core.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * User API
 * @author Rlax
 *
 */
@FeignClient(value = AppName.SERVICE_USER_NAME)
public interface IUpmsUserApi {

	String API_PREFIX = "/tp/upms-user";

	/**
	 * 获取用户信息
	 * @param id id
	 * @return info
	 */
	@GetMapping(API_PREFIX + "/get-user-by-id")
	R<UpmsUserDTO> get(@RequestParam("id") Long id);

}
